<style lang="less" scoped>

</style>
<template>
	<div>
		<common-header title="首页">
			<router-link slot="left" to="/">首页</router-link>
			<router-link slot="right" to="/signout">退出</router-link>
		</common-header>
		<div style="padding: 50px;">{{user.name}}欢迎回家</div>
	</div>
</template>
<script>
    import { mapState } from 'vuex'
	import ajaxHelper from '../../common/ajaxHelper'

    export default {
		data(){
			var url = 'Home/Msgs';
            var data = {
                "PageIndex": 1,
                "PageSize": 2
            };
            ajaxHelper.Post(url, data, function(result){
                console.log(result);
            });
			return {

			}
		},
        computed: mapState({user: state => state.user}),
    }
</script>